using System;
using System.Collections;
using System.Collections.Generic;
using MyFrame.Event;
using Platform.Skill.Deployer;
using UnityEngine;

namespace GardeningSkeleton.Platform.SkillSpace
{
    public class TransferImpact : BaseImpactEffect
    {
        private SkillDeployer deployer;



        public override void EndEffect()
        {
            // 每次都创建新的，因为要等爆炸动画
            // if (skillData != null) skillData.skillPrefab = null;
        }


        public override void Execute(SkillDeployer baseDeployer)
        {
            deployer = baseDeployer;
            skillData.owner.transform.position = deployer.transform.position;
        }

    }
}